﻿using System;

namespace maranov.SymlinkManager.FilesystemLinks
{
    /// <summary>
    /// Exception during link removal.
    /// </summary>
    public class LinkRemovalException : LinkException
    {
        /// <summary>
        /// Exception during link removal.
        /// </summary>
        /// <param name="message">Exception message.</param>
        /// <param name="embeddedException">Possible original exception for debugging.</param>
        public LinkRemovalException(string message, Exception embeddedException = null) : 
            base(message) 
        {
            OriginalException = embeddedException;
        }

        /// <summary>
        /// Possible original exception for debugging.
        /// </summary>
        public Exception OriginalException
        {
            get;
            private set;
        }
    }
}
